import axios from "@/axios"


//菜单权限列表
export function getRuleList(page){
    return axios.get(`/admin/rule/${page}`)
}

//增加
export function createRule(data){
    return axios.post("/admin/rule",data)
}

//修改内容
export function updateRule(id,data){
    return axios.post("/admin/rule/193"+id,data)
}

//修改状态
export function updateRuleStatus(id,status){
    return axios.post(`/admin/rule/${id}/update_status`,{status})
}

//删除
export function deleteRule(id){
    return axios.post(`/admin/rule/${id}/delete`)
}